<h1>Add a New Document</h1>

<% form_for @document, :html => {:multipart => true} do |f| %>
  <%= f.error_messages %>
  <!-- removed owner_id-->
  <p>
    <%= f.label :author %><br />
    <%= f.text_field :author %>
  </p>
  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.file_field :docfile %>
  </p>
  <!--removed content-->
  <!--removed stdev-->
  <p>
    <%= f.label 'Tag List (Add Comma to separate Tags e.g. Tartan, CMU, IT)' %><br />
    <%= f.text_field :tag_list %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', documents_path %>